import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(home: ImageLayoutWidget()));

class ImageLayoutWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Image Demo"),
      ),
      body: Column(
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Container(
                padding: const EdgeInsets.fromLTRB(0, 0, 0, 10.0),
                child: const Image(
                  image: AssetImage("assets/images/avatar.png"),
                  alignment: Alignment.bottomRight,
                  width: 200.0,
                  height: 300.0,
                  fit: BoxFit.cover,
                ),
              ),
              Container(
                padding: const EdgeInsets.fromLTRB(0, 0, 0, 10.0),
                child: const Image(
                  image: NetworkImage(
                      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fe41c6354875cd59939a76fd2a3fc1c9cc7804d8e8d5b4-IQoGvr_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1660360451&t=cd999e5a6e1d779562ae8fd85a7caaa5"),
                  alignment: Alignment.bottomRight,
                  width: 200.0,
                  height: 300.0,
                  fit: BoxFit.cover,
                ),
              ),
            ],
          ),
          Container(
            padding: const EdgeInsets.fromLTRB(0, 0, 0, 10.0),
            alignment: Alignment.center,
            child: const Image(
              image: NetworkImage(
                  "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fe41c6354875cd59939a76fd2a3fc1c9cc7804d8e8d5b4-IQoGvr_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1660360451&t=cd999e5a6e1d779562ae8fd85a7caaa5"),
              width: 200.0,
              height: 300.0,
              fit: BoxFit.cover,
            ),
          ),
        ],
      ),
      backgroundColor: Colors.blueAccent[50],
    );
  }
}
